﻿using Knight.Models.Base;
using Knight.Models.Entity;
using Knight.Models.Services;
using Knlght.Data;
using Knlght.Domain;

namespace Knight.Services
{
   public  class SinglePageInfoService:ServiceBase
    {
        public ActionResponse Add(SinglePageInfo model)
        {
            return doAction(()=> {
                var db = new RepositoryBase<DataContext>();
                return db.Insert(model, nameof(SinglePageInfo.Id), PrimaryKeyType.NextId,"T");
            });           
        }
    }
}
